package API.object;

/**
 * @Author admin
 * @Date 2019/3/26 16:42
 */
public class Student {
    private String name;
    public Student(){

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Student(String name) {
        this.name = name;
    }

    /**
     * 重写父类Object的toString方法（Ctrl O）
     * @return
     */
    @Override
    public String toString() {
        return this.getName();
    }

    @Override
    public boolean equals(Object obj) {
        
        return super.equals(obj);
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }
}
